package tool.zyk.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tool.zyk.user.UserInfo;
import tool.zyk.user.UserService;

/**
 * author: zyk
 * datetime: 2024/1/24 22:15
 * describe:
 */
@RestController
@RequestMapping("demo")
public class DemoController {
    @DubboReference
    private UserService userService;

    @GetMapping("getUserInfo")
    public UserInfo getUserInfo() {
        return userService.getUserInfo();
    }
}
